import { request } from 'umi'
import { Button } from 'antd'
export default function RequestPage() {
    const getGoods = async () => {
        let res = await request('/umi/goods',{
            method:'post',
            data:{
                username:'admin',
                password:'123456'
            }
        });
        console.log(res)
    }
    return (
        <>
        <div>
            <Button onClick={getGoods}>获取goods数据</Button>
        </div>
        </>
    )
}